package com.hangzhou.xyj.net.request;

import com.hangzhou.xyj.net.request.base.BaseRequest;
import com.hangzhou.xyj.utils.constants.API;

/**
 * Created by yaohuix on 2016/2/17  11:34
 * <p/>
 * 说明：获取验证码的请求
 */
public class SmsShortCodeReq extends BaseRequest {
    public static final String TYPE_REGIST = "REGIST";//注册
    public static final String TYPE_RESET_PASSWORD = "RESET_PASSWORD";//重置密码

    public SmsShortCodeReq(String tel, String type) {
        setTel(tel);
        setType(type);
    }

    @Override
    public String getUrl() {
        return API.SMS_SHORT_CODE;
    }

    public void setTel(String tel) {
        add("tel", tel);
    }

    public void setType(String type) {
        add("type", type);
    }

}
